package cn.kgc.userservice.service;

import cn.kgc.librarycommon.pojo.User;
import cn.kgc.userservice.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService{

    @Autowired
    private UserMapper userMapper;

    @Override
    public Integer isRepeat(String userName) {
        return userMapper.isRepeat(userName);
    }

    @Override
    public Integer addUser(User user) {
        return userMapper.addUser(user);
    }

    @Override
    public User login(String username) {
        return userMapper.login(username);
    }
}
